<?php
session_start();
require './HttpHelper.php';
$access_token=$_GET['access_token'] ? $_GET['access_token'] : '';
$url='ucenter.xhyonline.com/interface.php';

if ($access_token){
    $get=HttpHelper::get($url,['access_token'=>$access_token]);
    $user_info=json_decode($get,true)['user_info'];
    $user_info=json_decode($user_info,true);
    $_SESSION['user_info']=$user_info;
    echo "window.location.reload()";
}
